package com.flower.mapper;

import com.flower.model.dto.SalePageQueryDTO;
import com.flower.model.entity.Sale;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@SuppressWarnings("all")
/**
 *@ClassName SaleMapper
 *@Description TODO
 *@Author @O_o  GW__
 *@Date 2025/6/17 12:56
 *@Version 1.0
 */
@Mapper
public interface SaleMapper {
    Page<Sale> getSaleList(SalePageQueryDTO salePageQueryDTO);

    void add(Sale sale);

    void update(Sale sale);

    void deleteSaleById(Integer id);

    Page<Sale> getPassSale();

    List<Sale> list();
}
